package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 教室
 * </p>
 *
 * @author min
 * @since 2022-07-28
 */
@TableName("class_room")
@Data
public class ClassRoom implements Serializable {

    private static final long serialVersionUID = 1L;


    private Long id;

    private String name;

    
    private Long schoolId;

    private Integer lessonType;

    @TableLogic
    private Integer deleted;

    /**
     * 创建人id
     */
    
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;

    @TableField(exist = false)
    private String weekDates;

    @TableField(exist = false)
    private String gradeName;

    @TableField(exist = false)
    private String schoolTime;

    @TableField(exist = false)
    private Integer subjectsId;
}
